﻿using HardcoreGame.Content.Buffs;
using Terraria;
using Terraria.Enums;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Weapons.Summon.Whips
{
    public class FlowerVineWhip : ModItem
    {
        public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlowerVineEnemyBuff.TagDamage);
        public override void SetDefaults()
        {
            Item.DefaultToWhip(ModContent.ProjectileType<Projectiles.Whips.FlowerVineWhip>(), 30, 2, 4);
            Item.SetShopValues(ItemRarityColor.Orange3, Item.sellPrice(0, 2, 60));
        }
        public override bool MeleePrefix()
        {
            return true;
        }
        public override void AddRecipes()
        {
            CreateRecipe()
               .AddIngredient(ItemID.JungleSpores, 10)
               .AddIngredient(ItemID.Stinger, 10)
               .AddIngredient(ItemID.Vine, 1)
               .AddIngredient(ItemID.JungleRose, 1)
               .AddTile(TileID.Anvils)
               .Register();
        }
    }
}
